|
|
|
|
Sort Method, ItemCollectionClass Class |
Sorts the items in the item collection.
Syntax ItemCollectionClass Class (Softelvdm.SftTreeNET)
VB |
Public Sub Sort()
|
C# |
public void Sort(); |
C++ |
public: void Sort(); |
Comparer
Defines a method that compares two items or null/Nothing to use the SortAscending class implementation.
Recursive
Defines whether the dependents are also sorted, True to sort all direct and indirect dependents also, otherwise False. The default is False.
Comments
The Sort method sorts the items in the item collection.
Comparer implements a method that is used to compare two items. The sorting process calls this method repeatedly to sort the item collection. The method can sort items based on any of their attributes, even multiple keys.
Default implementations are available to sort cell text in a column ascending (SortAscending) or descending (SortDescending). Samples, including the implementation of SortAscending and SortDescending are shown below.